Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log unexpected exceptions in exception view #5820

Merged
merged 1 commit into from
Nov 13, 2023
Merged

Log unexpected exceptions in exception view #5820

merged 1 commit into from
Nov 13, 2023

Conversation

marcospri
Copy link
Member

A few of these don't produce any logging in local development making debugging them tricky.

Added an explicit logging here. Not sure if this would duplicate logging in a production environment. If that the case we can change this from exception to debug.

A few of these don't produce any logging in local development making
debugging them tricky.

Added an explicit logging here. Not sure if this would duplicate logging
in a production environment. If that the case we can change this from
`exception` to `debug`.
@@ -94,6 +98,7 @@ def serializable_error(self):

@exception_view_config(context=Exception)
def error(self):
LOG.exception("Unexpected error %s", type(self.exception))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are completely silent in the local logs. Or at least some of them

@marcospri marcospri requested a review from acelaya November 13, 2023 12:38
@marcospri marcospri merged commit 8092027 into main Nov 13, 2023
8 checks passed
@marcospri marcospri deleted the exception-log branch November 13, 2023 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants